package com.infra.micro.quartz.domain.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "QuartzJobPO", description = "biz_quartz_job表实体对象")
public class QuartzJobPO implements Serializable {
    /**
     * BIGINT(19) 必填
     * 任务id
     */
    @ApiModelProperty(name = "jobId", value = "任务id")
    private Long jobId;

    /**
     * VARCHAR(126)
     * 任务名称
     */
    @ApiModelProperty(name = "jobName", value = "任务名称")
    private String jobName;

    /**
     * VARCHAR(200) 必填
     * spring bean名称
     */
    @ApiModelProperty(name = "beanName", value = "spring bean名称")
    private String beanName;

    /**
     * VARCHAR(2000)
     * 参数
     */
    @ApiModelProperty(name = "params", value = "参数")
    private String params;

    /**
     * VARCHAR(100) 必填
     * cron表达式
     */
    @ApiModelProperty(name = "cronExpression", value = "cron表达式")
    private String cronExpression;

    /**
     * BIT(1) 默认值[b'0'] 必填
     * 暂停标识
     */
    @ApiModelProperty(name = "isPause", value = "暂停标识")
    private Boolean isPause;

    /**
     * VARCHAR(2000)
     * 预警邮箱列表，以逗号隔开
     */
    @ApiModelProperty(name = "alarmEmail", value = "预警邮箱列表，以逗号隔开")
    private String alarmEmail;

    /**
     * VARCHAR(255)
     * 预警短信列表，以逗号隔开
     */
    @ApiModelProperty(name = "alarmSms", value = "预警短信列表，以逗号隔开")
    private String alarmSms;

    /**
     * VARCHAR(255)
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Date createTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table biz_quartz_job
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * BIGINT(19) 必填
     * 获得 任务id
     */
    public Long getJobId() {
        return jobId;
    }

    /**
     * BIGINT(19) 必填
     * 设置 任务id
     */
    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    /**
     * VARCHAR(126)
     * 获得 任务名称
     */
    public String getJobName() {
        return jobName;
    }

    /**
     * VARCHAR(126)
     * 设置 任务名称
     */
    public void setJobName(String jobName) {
        this.jobName = jobName == null ? null : jobName.trim();
    }

    /**
     * VARCHAR(200) 必填
     * 获得 spring bean名称
     */
    public String getBeanName() {
        return beanName;
    }

    /**
     * VARCHAR(200) 必填
     * 设置 spring bean名称
     */
    public void setBeanName(String beanName) {
        this.beanName = beanName == null ? null : beanName.trim();
    }

    /**
     * VARCHAR(2000)
     * 获得 参数
     */
    public String getParams() {
        return params;
    }

    /**
     * VARCHAR(2000)
     * 设置 参数
     */
    public void setParams(String params) {
        this.params = params == null ? null : params.trim();
    }

    /**
     * VARCHAR(100) 必填
     * 获得 cron表达式
     */
    public String getCronExpression() {
        return cronExpression;
    }

    /**
     * VARCHAR(100) 必填
     * 设置 cron表达式
     */
    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression == null ? null : cronExpression.trim();
    }

    /**
     * BIT(1) 默认值[b'0'] 必填
     * 获得 暂停标识
     */
    public Boolean getIsPause() {
        return isPause;
    }

    /**
     * BIT(1) 默认值[b'0'] 必填
     * 设置 暂停标识
     */
    public void setIsPause(Boolean isPause) {
        this.isPause = isPause;
    }

    /**
     * VARCHAR(2000)
     * 获得 预警邮箱列表，以逗号隔开
     */
    public String getAlarmEmail() {
        return alarmEmail;
    }

    /**
     * VARCHAR(2000)
     * 设置 预警邮箱列表，以逗号隔开
     */
    public void setAlarmEmail(String alarmEmail) {
        this.alarmEmail = alarmEmail == null ? null : alarmEmail.trim();
    }

    /**
     * VARCHAR(255)
     * 获得 预警短信列表，以逗号隔开
     */
    public String getAlarmSms() {
        return alarmSms;
    }

    /**
     * VARCHAR(255)
     * 设置 预警短信列表，以逗号隔开
     */
    public void setAlarmSms(String alarmSms) {
        this.alarmSms = alarmSms == null ? null : alarmSms.trim();
    }

    /**
     * VARCHAR(255)
     * 获得 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * VARCHAR(255)
     * 设置 备注
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 获得 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP]
     * 设置 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_quartz_job
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", jobId=").append(jobId);
        sb.append(", jobName=").append(jobName);
        sb.append(", beanName=").append(beanName);
        sb.append(", params=").append(params);
        sb.append(", cronExpression=").append(cronExpression);
        sb.append(", isPause=").append(isPause);
        sb.append(", alarmEmail=").append(alarmEmail);
        sb.append(", alarmSms=").append(alarmSms);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_quartz_job
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        QuartzJobPO other = (QuartzJobPO) that;
        return (this.getJobId() == null ? other.getJobId() == null : this.getJobId().equals(other.getJobId()))
            && (this.getJobName() == null ? other.getJobName() == null : this.getJobName().equals(other.getJobName()))
            && (this.getBeanName() == null ? other.getBeanName() == null : this.getBeanName().equals(other.getBeanName()))
            && (this.getParams() == null ? other.getParams() == null : this.getParams().equals(other.getParams()))
            && (this.getCronExpression() == null ? other.getCronExpression() == null : this.getCronExpression().equals(other.getCronExpression()))
            && (this.getIsPause() == null ? other.getIsPause() == null : this.getIsPause().equals(other.getIsPause()))
            && (this.getAlarmEmail() == null ? other.getAlarmEmail() == null : this.getAlarmEmail().equals(other.getAlarmEmail()))
            && (this.getAlarmSms() == null ? other.getAlarmSms() == null : this.getAlarmSms().equals(other.getAlarmSms()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table biz_quartz_job
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getJobId() == null) ? 0 : getJobId().hashCode());
        result = prime * result + ((getJobName() == null) ? 0 : getJobName().hashCode());
        result = prime * result + ((getBeanName() == null) ? 0 : getBeanName().hashCode());
        result = prime * result + ((getParams() == null) ? 0 : getParams().hashCode());
        result = prime * result + ((getCronExpression() == null) ? 0 : getCronExpression().hashCode());
        result = prime * result + ((getIsPause() == null) ? 0 : getIsPause().hashCode());
        result = prime * result + ((getAlarmEmail() == null) ? 0 : getAlarmEmail().hashCode());
        result = prime * result + ((getAlarmSms() == null) ? 0 : getAlarmSms().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }
}